﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Interface_Tier;
using Data_Access_Tier;
using System.Data;

namespace Business_Tier
{
    public class BT_CommonCode : MarshalByRefObject, ICommonCode
    {
        DA_CommonCode common = new DA_CommonCode();
        public DataSet Read_Table(string Command)
        {
            return common.read_table(Command);
        }

        public string Generate_ID(string TableName, string CodeColumnName, string FirstChars)
        {
            return common.Generate_ID(TableName, CodeColumnName, FirstChars);
        }
        public int Generate_ID_Number(string TableName, string CodeColumnName)
        {
            return common.Generate_ID_Number(TableName, CodeColumnName);

        }
        public int Generate_ID_Number_For_Salary_Step(string RankCode)
        {
            return common.Generate_ID_Number_For_Salary_Step(RankCode);
        }
        public string Generate_ID_1_Char(string TableName, string CodeColumnName, string FirstChars) 
        {
            return common.Generate_ID_1_Char(TableName, CodeColumnName, FirstChars);
        }

    }
}
